<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head th:fragment="head(title)">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maxinum-scale=1.0, minimum-scale=1.0"/>
	<title th:text="${title}"></title>
	<link rel="stylesheet" th:href="@{/bootstrap/dist/css/bootstrap.css}">
	<script type="text/javascript" th:src="@{/JS/jquery/jquery-3.3.1.js}"></script>
	<script type="text/javascript" th:src="@{/bootstrap/dist/js/bootstrap.js}"></script>
	<script type="text/javascript" th:src="@{/JS/myjs/upload.js}"></script>
</head>
<body>
<!-- 样式 -->
<!-- Header -->
	<div class="navbar-fixed-top bg-primary" th:fragment="header(title)" style="width: 100%; min-height: 50px; ">
			<div class="row" >
				<div class="col-md-1  text-center" >
					<span class="nobr" style="font-size: large;">MAC系统</span>
				</div>
				<div class="col-md-10" >
				</div>
				<div class="col-md-1 text-center" th:if="${isLogout}">
					<a href="logout.html" th:href="@{'/logout'}">
						<span class="nobr" style="font-size: large; color: #985f0d">注销</span>
					</a>
				</div>
			</div>
	</div>

	<!-- Footer navbar-fixed-bottom-->
	<div  th:fragment="footer" class="navbar-fixed-bottom bg-primary" style="width: 100%; min-height: 40px;">
		<div class="text-center" style="padding-top: 10px">Copyright ©2018-2020 版权所有，翻版必究</div>
	</div>

	<!--导入数据操作层-->
	<div th:fragment="upload" id="importModel" class="modal fade bs-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header bg-primary">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
					<h4 class="modal-title">文件导入</h4>
				</div>
				<div class="modal-body">
					<div style="text-align:right;padding:5px">
						<a href="/downloadexcel" onclick="javascript:Preview();">
							<img alt="测试用户信息-模板" src="/images/img/excel.ico" style="height: 20px"/>
							<span style="font-size:larger;font-weight:200;color:red">Demo-模板.xls</span>
						</a>
					</div>
					<hr/>
					<form id="importFileForm" method="post">
						<div title="Excel导入操作" style="padding: 5px">
							<input id="excelFile" name="excelFile" type="file" />
						</div>
						<!-- 添加隐藏域 -->
						<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
						<div id="errorInfo"></div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" onclick="closeModel()" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary" onclick="SaveImport()">保存</button>
				</div>
			</div>
		</div>
	</div>




	<!-- Menu -->
	<div class="container" th:fragment="menu">
		<div class="row" style="margin-top: -15px;">
			<div class="col-md-2 form-inline">
				<div class="row" style="margin: 0;">
					<span class="clearfix"><BR /></span>
				</div>
				<div class="row pull-left" style="margin: 0;">
					<div class="dropdown">
						<a href="#" style="margin: 0;"
							class="btn btn-primary  btn-lg btn-block" data-toggle="dropdown"
							role="button" aria-expanded="false">
							<h4 style="margin: 0;">
								Menu <span class="caret"></span>
							</h4>
						</a>
						<ul class="dropdown-menu multi-level" role="menu"
							aria-labelledby="dropdownMenu">
							<li class="dropdown-submenu"><a tabindex="-1" href="#">Auth</a>
								<ul class="dropdown-menu">
									<li><a tabindex="-1" href="#" th:href="@{'/stow_inquiry'}">Test</a></li>
									<li sec:authorize="hasRole('ROLE_USER')"><a tabindex="-1"
										href="#" th:href="@{'/stow_inquiry'}">User</a></li>
									<li sec:authorize="hasRole('ROLE_ADMIN')"><a tabindex="-1"
										href="#" th:href="@{'/stow_inquiry'}">Admin</a></li>
								</ul></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>

</body>
</html>


